﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace XRERP.Models
{
    public class JRow<T>
    {
        public JRow()
        {

        }

        /// <summary>
        /// Json返回值
        /// </summary>
        /// <param name="code">返回代码</param>
        /// <param name="msg">返回信息</param>
        public JRow(int code, String msg)
        {
            this.code = code;
            this.msg = msg;
        }

        /// <summary>
        /// Json返回值
        /// </summary>
        /// <param name="code">返回代码</param>
        /// <param name="msg">返回信息</param>
        /// <param name="isError">是否有错误</param>
        public JRow(int code, String msg, bool isError)
        {
            this.code = code;
            this.msg = msg;
            this.isError = isError;
        }

        public int code { get; set; }
        public String msg { get; set; }
        public bool isError { get; set; }
        public T RowData { get; set; }
    }
}